package com.db.utility;

import java.util.List;

import org.springframework.stereotype.Service;


public interface BaseDao<T> {
	
	public T findByUuid(String uuid);
	
	public T findByName(String name);
	
	public T findById(int id);
	
	public List<T> findAll();
	
	public List<T> findByCondition(String condition);
	
	public List<T> findByProperty();
	
	public int deleteByName(String name);
	
	public boolean deleteById(int id);
	
	public int deleteByIds(int[] ids);
	
	public int deleteByNames(String[] names);
	
	public int update(T t);
	
	public int update(T[] ts);
	
	public boolean save(T t);

	public int save(T[] ts);
	
	public String getLastMessage();
	
	public String getLastError();
	
	public List<String> getAllMessages();
	
	public List<String> getAllErrors();
	
}
